<template>
    <div class="body">
        <div class="titler">
            <router-link to="./">
                <img src="../../assets/头部.png" alt="" />
            </router-link>
                
        </div>
        <div class="wrap">
            <div class="biaoshi">
                <img src="../../assets/标识3.png" alt="">
            </div>
            <div class="shousuo">
                <div>
                    <img src="../../assets/搜索框2.png" alt="">
                </div>
                <input type="text" placeholder="请输入商品名称搜索">
            </div>
        </div>
        <div class="content"></div>
        <div class="main">
            <van-sidebar v-model="active">
                <van-sidebar-item title="秒杀" />
                <van-sidebar-item title="新鲜水果" />
                <van-sidebar-item title="休闲食品" />
                <van-sidebar-item title="时令蔬菜" />
                <van-sidebar-item title="肉蛋家禽" />
            </van-sidebar>
            <div class="main_right">
                <div class="main_right_list" 
                v-for="item in list" :key="item">
                
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="footer_box1">
                <img src="../../assets/空购物车.png" alt="">
            </div>
            <div class="footer_box2">购物车是空的</div>
            <div class="footer_box3">
                去结算
            </div>
        </div>


    </div>
</template>

<script setup>
import { Sidebar, SidebarItem } from 'vant';
import {ref}from 'vue'
let list =ref([1,2,3,4])
</script>

<style lang="scss" scoped>

.body{
    overflow: hidden;
}
.titler{
    width: 100%;
    height: 0.2rem;
}
.wrap{
    display: flex;
    width: 100%;
    height: 0.35rem;

    .biaoshi{
        overflow: hidden;
        margin-left: 0.158rem;
        width: 0.125rem;
        height: 100%;
        background-color: red;
        img{
            width: 0.125rem;
            height: 100%;
        }
    }
    .shousuo{
        display: flex;
        margin-left: 0.16rem;
        width: 3.1rem;
        height: 100%;
        border-radius: 1rem;
        background-color: #F5F5F5;

        div{
            margin-top: 0.09rem;
            margin-left: 0.15rem;
        }

        input{
            margin-top: 0.01rem;
            margin-left: 0.1rem;
            width: 2.5rem;
            height: 78%;
            border:none;
            background: #F5F5F5;
            
        }
    }
}

.content{
    width: 100%;
    height: 1rem;
    background-color: yellowgreen;

}

.main {
    display: flex;
    overflow: hidden;
}
.van-sidebar{
    height: 6rem;
    background-color: #F5F5F5;
}

.van-sidebar-item {
  height: 0.5rem;
}
.main_right{
    width: 2.9rem;
    height: 5rem;
    overflow: hidden;
    background-color: #fff;
}
.main_right_list{
    // margin-top: 0.1rem;
    width: 2.9rem;
    height: 0.92rem;
    border-bottom:0.01rem solid #ccc;
    background: #FFFFFF;
}

.footer{
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: .49rem;
    overflow: hidden;
    background-color: #fff;
    border:none;

    .footer_box1{
        margin-top: 0.11rem;
        margin-left: 0.24rem;
        width: 0.3rem;
        height: 0.28rem;
    }
    .footer_box2{
        padding-left: 0.2rem;
        margin-left: 0.32rem;
        width: 1.85rem;
        height: 0.49rem;
        font-size: 12px;
        line-height: 0.49rem;
        color: #333333;
    }
    .footer_box3{
        width: 0.98rem;
        height: 0.49rem;
        text-align: center;
        font-size: 14px;
        line-height: 0.49rem;
        color: #FFFFFF;
        background-color: #4FB0F9;
    }
}

</style>